<?php
defined('ROOTPATH') OR exit('Forbidden');

// 定义models文件夹路径
$models = ROOTPATH.'models/';

// 扫描models文件夹下所有文件
$models_name = scandir($models);

// 遍历并判断mod_开头的文件并引入
foreach ($models_name as $filename) {
    if (substr($filename, 0, 3) == 'mod') {
        require_once ROOTPATH.'models/'.$filename;
    }
}
